﻿@model LoveEat.MODEL.sys_menu_series

@{

    ViewBag.Title = "菜系编辑";
    int i = 0;
}
@{
    Html.EnableClientValidation();
}
@using System.Web.Mvc.Html

<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="/">
            首页
        </a>
        <i class="icon-angle-right">
        </i>
    </li>
    <li>
        <a href="@Url.Action("MenuCategories", "MenuManagement")">
            系列管理
        </a>
        <i class="icon-angle-right">
        </i>
    </li>
    <li>
        <a href="javascript:void(0)">
            编辑面板
        </a>
    </li>
</ul>
<div class="row-fluid">
    <div class="span12">
        <div class="portlet box grey">
            <div class="portlet-title">
                <div class="caption">
                    <i class="icon-credit-card"></i>
                    新增/编辑系列
                </div>
                <div class="tools">
                    <a href="javascript:;" class="collapse">
                    </a>
                </div>
                <div class="actions">
                    <a>
                    </a>
                </div>
            </div>
            <div class="portlet-body form">
  
                    <form id="signupForm" action="@Request.Url.ToString()" method="post" onsubmit="Compare()" class="form-horizontal" novalidate="novalidate">
                        <div class="control-group">
                            <label class="control-label">
                                系列名称
                                <span class="required">
                                    *
                                </span>
                            </label>
                            <div class="controls">
                               
                                @Html.TextBoxFor(model => model.menu_series_name)
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                类别名称
                                <span class="required">
                                    *
                                </span>
                            </label>
                            <div class="controls">
                                @Html.DropDownListFor(model => model.menu_type_id, ViewBag.sys_menuTypeSelLists as System.Web.Mvc.SelectList, "请选择")
                            </div>
                        </div>
                        <div class="form-actions">
                            <button type="submit" class="btn purple m-wrap">保存</button>
                            @*<a class="btn btn-default m-wrap" href="@Request.Url">返回</a>
                            <button type="button" class="btn btn-default" data-dismiss="modal" onclick="window.location.reload();">
                                取消*@
                            </button>
                            <input type="hidden" name="hidStuatus" value="" />
                            <input type="hidden" name="returnUrl" value="@Request["returnUrl"]" />
                        </div>

                    </form>
                <!-- END FORM-->
            </div>
        </div>
    </div>
</div>
<script charset="utf-8" src="~/Content/Scripts/plugins/Editor/kindeditor-min.js"></script>
<script charset="utf-8" src="~/Content/Scripts/plugins/Editor/zh_CN.js"></script>
<script type="text/javascript">
    $().ready(function () {
        $("#signupForm").validate({
            rules: {
                firstname: "required",
                menu_series_name: {
                    required: true

                },
                menu_type_id: {
                    required: true,

                }
            },
            messages: {
                menu_series_name: "请输入系列名称",
                menu_type_id: {
                    required: "请选择类别",

                }

            }
        });
    });
    //function doBan() {
    //    $("#sub").attr("disabled", "disabled");
    //}

</script>
